import { ResSearch } from '@/domain/common/types/page';
import { BaseDeptId, ChildId, CommonReqParam, DepartId, PrimaryID, ResPageList, SubjectId, TermId, YearId } from '../common';

export type PlanData = {
  id: PrimaryID;
  year_id: YearId;
  year_name: string;
  term_id: TermId;
  term_name: string;
  course_type_id: number;
  course_type_name: string;
  course_term_id: number;
  course_term_name: string;
  depart_id: DepartId;
  depart: string;
  base_id: BaseDeptId;
  child_id: ChildId;
  child_name: string;
  base: string;
  subject_id: SubjectId;
  subject_name: string;
  subject_group_leader_id: number;
  subject_group_leader_name: string;
  teaching_group_leader_id: number;
  teaching_group_leader_name: string;
  counsellor_id: number;
  counsellor_name: string;
  class_id: number;
  class_name: string;
  plan_order: number;
  stu_num_in_class: number;
  live_attending_stu_num: number;
  live_attending_rate: number;
  plan_completing_stu_num: number;
  plan_completing_rate: number;
  homework_comitting_stu_num: number;
  homework_comitting_rate: number;
  homework_revising_stu_num: number;
  homework_revising_rate: number;
};

export type ReqParam = CommonReqParam;

export type ResData = ResPageList<PlanData>;

export type ResDataSearch = ResSearch;
export enum OpButtonKey {}
